import time
import unittest
from BeautifulReport import BeautifulReport
from CASES import test_shouye

suite = unittest.TestSuite()
loader = unittest.TestLoader()
suite.addTest(loader.loadTestsFromTestCase(test_shouye.Testll))



now = time.strftime("%Y%m%d%H%M%S")
report_name = "kS{}.html".format(now)
runner = BeautifulReport(suite)
runner.report(description="测试报告", filename=report_name, report_dir=r"./REPORT")

# suite = unittest.defaultTestLoader.discover("CASES","test_*.py")
# report_name = "kS{}.html".format(now)
# runner = BeautifulReport(suite)
# runner.report(description="测试报告",filename = report_name,report_dir=r"./REPORT")

